//
//  DayAxisValueDateFormatter.swift
//  MoyoungHome
//
//  Created by 易先生 on 2022/9/23.
//

import UIKit
import Charts

public class DayAxisValueDateFormatter: NSObject, IAxisValueFormatter {
    
   public var axisValueArray : [String] = []
    
    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {
        
        let index = Int(Int(value) % self.axisValueArray.count)
        return self.axisValueArray[index]
    }
}
